package com.qidian.tcba.dao;



import com.qidian.tcba.admin.model.entity.District;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;
@Mapper
public interface DistrictMapper {
    int deleteByPrimaryKey(int id);

    int insert(District record);

    District selectByPrimaryKey(int id);

    List<District> selectAll();

    int updateByPrimaryKey(District record);

    /**
     * 根据区县id查找区域id
     * @param distinctId
     * @return
     */
    Integer getAreaRegionIdByDistinctId(int distinctId);

    List<District> findByParentId(int parentId);

    District selectByName(String name);

}